<?php
/**
 * Created by PhpStorm.
 * User: 94004
 * Date: 2017/12/28
 * Time: 20:27
 */
header("Content-Type:text/html;charset=utf-8;");
$arr = array("code" => 101, "msg" => "您还没有登录，请先登录");
session_start();
if (!empty($_SESSION) && !empty($_SESSION["user_id"])) {
    $arr["code"] = 100;
    $arr["msg"] = "登录成功";
}
echo json_encode($arr, JSON_UNESCAPED_UNICODE);
?>